package net.vz.geoapi.examples;

import net.vz.geoapi.SimpleSearch;

/**
 * simple test class for geoapi service
 * @author sirrgang
 *
 */
public class SimpleSearchTest {

    /**
     * @param args
     */
    public static void main(String[] args) {
        String apiKey = "demo";

        SimpleSearch simple;
        
        simple = new SimpleSearch(apiKey);
        
        simple.setLatitude(37.75647);
        simple.setLongitude(-122.421218);
        simple.setRadius(0.1f);
        simple.setLimit(10);
        
        try {
            String response = simple.doRequest();
            System.out.println(response);
        } catch (Exception _e) {
            _e.printStackTrace();
        }
        
    }

}
